package ltd.hanamaki.study.generic;

/* 泛型类 */
public class User<T> {

    private T id;

    private T name;

    private T sex;

    public User() {
    }

    public User(T id, T name, T sex) {
        this.id = id;
        this.name = name;
        this.sex = sex;
    }

    public T getId() {
        return id;
    }

    public void setId(T id) {
        this.id = id;
    }

    public T getName() {
        return name;
    }

    public void setName(T name) {
        this.name = name;
    }

    public T getSex() {
        return sex;
    }

    public void setSex(T sex) {
        this.sex = sex;
    }
}
